import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;



@ManagedBean
@SessionScoped
public class MenuBean {   
       
    public void alunni() {   
        addMessage("Situazione Alunni");   
    }   
       
    public void classi() {   
        addMessage("Elenco classi");   
    }   
       
       
    public void addMessage(String summary) {   
        FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary,  null);   
        FacesContext.getCurrentInstance().addMessage(null, message);   
    }   
}   
